package net.towee.model;

import java.util.Map;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * This object contains some settings of user account
 * @author c58
 */
public interface Settings extends IsSerializable {
	/**
	 * @return Map of settings
	 */
	Map<String, String> getSettingsMap();
	
	/**
	 * Put the setting to container
	 * @param key
	 * @param value
	 * @throws  
	 */
	void putSetting(String key, Object value);
	
	/**
	 * Delete setting from container
	 * @param key
	 */
	void deleteSetting(String key);
	
	/**
	 * Get setting with some key
	 * @param key
	 * @return
	 */
	String getSettingString(String key);

	/**
	 * Get integer setting value
	 * @param key
	 * @return
	 */
	int getSettingInt(String key);
	
	/**
	 * Get double value
	 * @param key
	 * @return
	 */
	double getSettingDouble(String key);
	
	/**
	 * Get boolean value
	 * @param key
	 * @return
	 */
	boolean getSettingBoolean(String key);
}
